package com.itany.cms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.itany.cms.entity.Chapter;
import com.itany.cms.entity.Course;
import com.itany.cms.exception.CourseExistException;
import com.itany.cms.exception.FileUploadErrorException;
import com.itany.cms.exception.RequestParameterErrorException;
import org.springframework.web.multipart.MultipartFile;

public interface CourseService {
    PageInfo<Course> findByParams(Course courseParam, String pageNo, String pageSize);
    PageInfo<Chapter> findChapter(Chapter chapterParam, String pageNo, String pageSize);
    void modifyStatus(String id,String status) throws RequestParameterErrorException;
    void addCourse(String courseName, String courseInfo, String author, MultipartFile file, String recommendationGrade,String courseTypeId) throws RequestParameterErrorException, CourseExistException, FileUploadErrorException;
    void modifyCourse(String id, String name, String author, MultipartFile file,String recommendationGrade,String courseTypeId) throws RequestParameterErrorException, CourseExistException, FileUploadErrorException;

}
